package top.lemcoo.mybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.lemcoo.common.entity.User;
import top.lemcoo.mybatis.mapper.UserMapper;
import top.lemcoo.mybatis.service.UserService;

import javax.annotation.Resource;

/**
 * 【】
 *
 * @Author: zhaowx
 * @Date: 2020/7/21 21:54
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer id) {
        User userById = userMapper.getUserById(id);
        return userById;
    }
}
